export default class AnimationData {
    constructor(e, t) {
        this.layerNameMap = {};
        this.layers = new Array;
        this.animationDatas = new Array;
        this.name = e;
        this.transform = t;
        this.isAdd = false;
        this.forceFrameDelay = -1;
        this.isOverlay = false;
    }
}
AnimationData.prototype.setAdd = function () {
    this.isAdd = true;
    return this;
};
AnimationData.prototype.setScale = function (e, t) {};
AnimationData.prototype.shift = function (e, t) {
    return this;
};
AnimationData.prototype.addLayer = function (e) {
    var t = this.layers.length;
    this.layerNameMap[e.flashName] = t;
    this.layers.push(e);
};
AnimationData.prototype.addData = function (e) {
    this.animationDatas.push(e);
};
AnimationData.prototype.getLayerByFlashName = function (e) {
    return this.layerNameMap[e];
};
AnimationData.prototype.connectLayers = function (e) {
    return this;
};
AnimationData.prototype.makeTheSameAmountOfFramesInAllLayers = function () {
    var e = 0;
    for (var t = 0; t < this.layers.length; ++t)
        e = Math.max(e, this.layers[t].frames.length);
    for (t = 0; t < this.layers.length; ++t) {
        var n = this.layers[t];
        while (n.frames.length < e)
            n.addFrame(FrameData.getEmptyData());
    }
};
AnimationData.prototype.cloneLayer = function (e, t) {
    var n = this.getLayerByFlashName(e);
    var r = this.getLayerByFlashName(t);
    this.layers[r].frames = this.layers[n].frames;
};